Skip to content

Fix/search substring match#3

Open
lertrel wants to merge 2 commits into
mate-academy:mainfrom
lertrel:fix/search-substring-match
Open

Fix/search substring match#3
lertrel wants to merge 2 commits into
mate-academy:mainfrom
lertrel:fix/search-substring-match

Conversation

@lertrel

@lertrel lertrel commented Jun 14, 2026

Copy link
Copy Markdown

No description provided.

Ton and others added 2 commits June 14, 2026 21:48
The matches() function was using strict equality (===) to compare note
text against the search term, so only notes whose full text was identical
to the term would be returned. Switch to String.prototype.includes() so
that search finds every note containing the term anywhere in its text,
which is what the feature is supposed to do.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant